package vip.liux.backend.application.service.pay.dto.refund;

import lombok.Data;
import vip.liux.contracts.shared.enums.pay.PayRefundStatus;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 退款订单 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class PayRefundBaseDto {

    private String refundNo;

    private Long appId;

    private Long channelId;

    private String channelCode;

    private String orderNo;

    // ========== 商户相关字段 ==========

    private String merchantOrderId;

    private String merchantRefundId;

    private String notifyUrl;

    // ========== 退款相关字段 ==========

    private PayRefundStatus status;

    private BigDecimal payPrice;

    private BigDecimal refundPrice;

    private String reason;

    private String userIp;

    // ========== 渠道相关字段 ==========

    private String channelOrderNo;

    private String channelRefundNo;

    private LocalDateTime successTime;

    private String channelErrorCode;

    private String channelErrorMsg;

    private String channelNotifyData;

}
